import { IPageParams } from '.'

/**
 * 获取菜单列表参数
 */
export interface IGetMenuListParams extends IPageParams {
  menuName?: string
  state?: number
}

/**
 * 菜单信息
 */
export interface IMenuInfo {
  menuName: string
  icon?: string
  menuType: number
  menuState: number
  menuCode?: string
  parentId: string
  path?: string
  component?: string
}

export interface IMenuItem extends IMenuInfo {
  _id: string
  buttons?: IMenuItem[]
  children?: IMenuItem[]
}
